<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>jquery.addIdx 0.1</title>
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="jquery.addIdx-0.1.js"></script>
	<style type="text/css">
	.addIdxUl{padding-top:10px;}
	li{padding:5px;float:left;cursor:pointer;border:1px solid #ccc;background:#f5f5f5;}
	</style>
</head>
<body>
<div>Click to : <strong id="addIdxExport"></strong></div>
<ul class="addIdxUl" id="addIdxUl">
    <li>index_0</li>
    <li>index_1</li>
    <li>index_2</li>
    <li>index_3</li>
    <li>index_4</li>
    <li>index_5</li>
</ul>

<script type="text/javascript">
$(function(){
	// example
	$("#addIdxUl li").addIdx("number").click(function(){
	    $("#addIdxExport").html(this.number);
	});
});
</script>
</body>
</html>